package com.spring.demo.spring.core.applicationprocess;

import com.spring.demo.spring.core.applicationprocess.service.UserInterface;
import com.spring.demo.spring.core.applicationprocess.service.UserService;
import com.spring.demo.spring.core.context.GenrnicApplicationContext;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;

/**
 * @Author RenPu
 * @Date 2024/2/15 19:51
 * @Version 1.0
 * @Description: 测试手动实现Spring核心流程的测试类
 **/
public class Test {
    public static void main(String[] args) {

        GenrnicApplicationContext genrnicApplicationContext = new GenrnicApplicationContext(AppMain.class);
        UserInterface userService   =  (UserInterface)genrnicApplicationContext.getBean("userService");
        userService.userServiceTest();




        System.out.println(genrnicApplicationContext.getBean("orderService"));


    }
}
